
const state={
    // states:true,
    searchValue:"",
    rateDate:[],
    imgSrc:""
   

 
     

}
const getters={
    //  myHide(state){
    //    return state
         
         
    //  }

}
const actions={
  hide(context){

     context.commit("hide")
   
  },
  search(context,input){
    context.commit("search",input)
  },
  //算法数据
  algorithm(context,data){
   context.commit("algorithm",data)   
  },
  imgSrc(context,res){
         context.commit("imgSrc",res)
  }



}
const mutations={
 hide(state){
    // state.states=false 
 },
 search(state,input){
      state.searchValue=input 

 },
 algorithm(state,data){
   // console.log("---------")
   //     console.log(data)
       state.rateDate=data
  },
  imgSrc(state,res){
        state.imgSrc=res
  }

}
export default{
   state,
   mutations,
   actions,
   getters
  


}